<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script>
        $(function () {
            $('#getdata').click(function () {
                $.ajax({
                    type: 'get',
                    url: 'http://127.0.0.1:3001/getHeroSkin',
                    data: { heroName: "后羿" },
                    success: res => {
                        console.log(res);
                    }
                })
            })
        })
    </script>
</head>

<body>
    <button id="getdata">获取服务器数据</button>
</body>

</html>